package com.weishu.house.service.impl;

import com.weishu.house.entity.HouseStyle;
import com.weishu.house.entity.RoomInfo;
import com.weishu.house.mapper.HouseStyleMapper;
import com.weishu.house.service.IHouseStyleService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 集中式房源-房型信息表 服务实现类
 * </p>
 *
 * @author gao
 * @since 2021-05-25
 */
@Service
public class HouseStyleServiceImpl extends ServiceImpl<HouseStyleMapper, HouseStyle> implements IHouseStyleService {

    @Autowired
    private HouseStyleMapper houseStyleMapper;
    @Override
    public List<RoomInfo> houseStyle(HouseStyle houseStyle) {
        return houseStyleMapper.houseStyle(houseStyle);
    }

    @Override
    public boolean addd(HouseStyle movie) {
        return houseStyleMapper.add(movie);
    }
}
